/*
* // +-------------------------------------------------------------------------------------------------
* // |                 有你就好 [ 有节骨乃坚，无心品自端 ]     <http://encoding.wang>
* // +-------------------------------------------------------------------------------------------------
* // |                             独在异乡为异客         每逢佳节倍思亲
* // +-------------------------------------------------------------------------------------------------
* // |                 联系:   <707069100@qq.com>      <http://weibo.com/513778937>
* // +-------------------------------------------------------------------------------------------------
*/

// -----------------------------------------------------------------------------------------------------
// +----------------------------------------------------------------------------------------------------
// |                   ErYang出品 属于小极品          共同学习    共同进步
// +----------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------


package wang.encoding.mroot.service.system


import wang.encoding.mroot.model.entity.system.ScheduleJob
import wang.encoding.mroot.common.service.BaseService

import java.math.BigInteger

/**
 * 后台 定时任务 Service 接口
 *
 * @author ErYang
 */
interface ScheduleJobService : BaseService<ScheduleJob> {


    /**
     * 初始化新增 ScheduleJob 对象
     *
     * @param scheduleJob ScheduleJob
     * @return ScheduleJob
     */
    fun initSaveScheduleJob(scheduleJob: ScheduleJob): ScheduleJob

    // -------------------------------------------------------------------------------------------------

    /**
     * 初始化修改 ScheduleJob 对象
     *
     * @param scheduleJob ScheduleJob
     * @return ScheduleJob
     */
    fun initEditScheduleJob(scheduleJob: ScheduleJob): ScheduleJob

    // -------------------------------------------------------------------------------------------------

    /**
     * Hibernate Validation 验证
     */
    fun validationScheduleJob(scheduleJob: ScheduleJob): String?

    // -------------------------------------------------------------------------------------------------

    /**
     * 根据标识查询 ScheduleJob
     *
     * @param name 标识
     * @return ScheduleJob
     */
    fun getByName(name: String): ScheduleJob?

    // -------------------------------------------------------------------------------------------------

    /**
     * 根据名称查询 ScheduleJob
     *
     * @param title 名称
     * @return ScheduleJob
     */
    fun getByTitle(title: String): ScheduleJob?

    // -------------------------------------------------------------------------------------------------

    /**
     * 新增 定时任务
     *
     * @param scheduleJob ScheduleJob
     * @return ID  BigInteger
     */
    fun saveBackId(scheduleJob: ScheduleJob): BigInteger?

    // -------------------------------------------------------------------------------------------------

    /**
     * 更新 定时任务
     *
     * @param scheduleJob ScheduleJob
     * @return ID  BigInteger
     */
    fun updateBackId(scheduleJob: ScheduleJob): BigInteger?

    // -------------------------------------------------------------------------------------------------

    /**
     * 删除 定时任务 (更新状态)
     *
     * @param id BigInteger
     * @return ID  BigInteger
     */
    fun removeBackId(id: BigInteger): BigInteger?

    // -------------------------------------------------------------------------------------------------

    /**
     * 删除 定时任务
     *
     * @param id BigInteger
     * @return ID  BigInteger
     */
    fun removeByIdBackId(id: BigInteger): BigInteger?

    // -------------------------------------------------------------------------------------------------

}

// -----------------------------------------------------------------------------------------------------

// End ScheduleJobService interface

/* End of file ScheduleJobService.kt */
/* Location: ./src/main/kotlin/wang/encoding/mroot/service/system/ScheduleJob.kt */

// -----------------------------------------------------------------------------------------------------
// +----------------------------------------------------------------------------------------------------
// |                           ErYang出品 属于小极品  O(∩_∩)O~~   共同学习    共同进步
// +----------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------
// -----------------------------------------------------------------------------------------------------
